<!--
	vLogoutSample
-->
<?php
	/***************************************************
	 * View Declaration
	 ***************************************************/

		$formOption01 = sprintf('/%s/%s/',$this->nUri['seg1'],$this->nUri['logoutSeg']);
		$formOption02 = array(
			'role' => 'form',
			'id' => 'nForm',
			'class' => 'nForm form-signin'
		);

?><?php
	/***************************************************
	 * View Output
	 ***************************************************/
?>
		<?=$this->nhtml->nFormOpen($formOption01, $formOption02)?>
			<a href="javascript:void(0);" class="btn uIdBtnConfirm01  btn-lg btn-primary btn-block" type="submit">로그아웃</a>
		<?=$this->nhtml->nFormClose()?>
<?php
	/***************************************************
	 * View Ajax
	 ***************************************************/
?>
		<script type="text/javascript">
			var postValue = {};

			$(function(){
				postValue['GAesKey'] = GAesKey;
				$('.uIdBtnConfirm01').click(function(){
					var targetButton = $(this);
					$(targetButton).addClass('disabled');
					var formAjaxSendPref = {
						oForm : '#nForm',
						mode : '<?=$this->nurl->encrypt("retrive")?>',
						nameValues : [],
						afterCallback:function(data){
							//console.log($(this));
							$(targetButton).removeClass('disabled');
							if(data.resultMessage == 'succ'){
								bootbox.alert('로그아웃 되었습니다.', function(){ return; });
							}
						}
					};
					Najax.init(formAjaxSendPref);
					Najax.call();
				});
			});
		</script>